package com.github.jinatonic.confetti.sample;

import com.github.jinatonic.confetti.sample.slice.*;
import ohos.aafwk.ability.Ability;
import ohos.aafwk.content.Intent;

public class MainAbility extends Ability {
    @Override
    public void onStart(Intent intent) {
        super.onStart(intent);
        super.setMainRoute(MainAbilitySlice.class.getName());

        addActionRoute("action.FallingConfettiFromPoint", FallingConfettiFromPointAbilitySlice.class.getName());
        addActionRoute("action.FallingConfettiFromTop", FallingConfettiFromTopAbilitySlice.class.getName());
        addActionRoute("action.Explosion", ExplosionAbilitySlice.class.getName());
        addActionRoute("action.ShimmeringConfetti", ShimmeringAbilitySlice.class.getName());
        addActionRoute("action.FallingIceFlakeWithTouch", FallingWithTouchAbilitySlice.class.getName());
        addActionRoute("action.FallingIceFlakeWithListener", FallingConfettiWithListenerAbilitySlice.class.getName());

    }
}
